<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./reset.css">
    <link rel="stylesheet" href="./font_3651312_ygqgu1yx4cg/iconfont.css">
    <style>
        .w{
            width: 1200px;
            margin: 10px 30px;
        }
        .box{
            height: 800px;
        }
        .box .top {
            display: flex;
            height: 76px;
        }
        .box .top h1{
            width: 200px;
            height: 76px;
            background: url('./img/shouye.png') no-repeat;
        }
        .box .top div{
            width: 687px;
            height: 34px;
            border: 3px solid #f40;
            display: flex;
            justify-content: space-between;
        }
        .box .top div input{
            border: 0;
            outline: 0;
        }
        .box .top div #search{
            width: 567px;
            line-height: 34px;
            padding-left: 10px;
        }
        .box .top div #submit{
            width: 95px;
            height: 100%;
            background: #f40;
            color: white;
            cursor: pointer;
        }
        main{
            width: 1190px;
        }
        main .list{
            display: flex;
            width: 100%;
            height: 800px;
        }
        main .list li{
            width: 194px;
            height: 344px;
            padding: 20px;
        }
        main .list li img{
            width: 100%;
            height: 100%;
        }
        #wenzi{
            color: gray;
            font-size: 14px;
        }
        #ora{
            color: #fd3f31;
            font-size: 25px;
        }
        #old{
            color: gray;
            font-size: 14px;
        }
        #dianpu{
            width: 194px;
            display: block;
        }
    </style>
</head>
<body>
    <div class="box w">
        <div class="top">
            <h1></h1>
            <div>
                <input type="text" name="search" id="search">
                <input type="submit" name="submit" id="submit" value="搜索">
            </div>
        </div>
        <main>
            <ul class="list">
                <!-- <li>
                    <img src="./1.webp" alt="">
                    <span id="wenzi">【明星爆款】冰希黎幻彩鎏金香水女士持久淡香正品大牌流沙香水</span><br>
                    <span id="ora">￥148.00</span><span id="old"><s>￥198</s></span><br>
                    <span  class="iconfont icon-dianpu" id="dianpu">冰希黎旗舰店</span>
                </li> -->
            </ul>
        </main>
    </div>
    <script>
        let arr = [{
    "img":"./img/1.webp",
    "content":"【明星爆款】冰希黎幻彩鎏金香水女士持久淡香正品大牌流沙香水",
    "money":"￥148.00",
    "oldmoney":"￥198",
    "shop":"冰希黎旗舰店"
},{
    "img":"./img/2_.webp",
    "content":"食分辣新款香辣味胖子螺蛳粉广西特产柳州正宗螺狮粉加辣320g*6袋",
    "money":"￥39.90",
    "oldmoney":"￥49.90",
    "shop":"食分辣旗舰店"
},{
    "img":"./img/3.webp",
    "content":"Finebagstudio2022新款复古斜挎包女小包女小众设计简约时尚百搭",
    "money":"￥288.00",
    "oldmoney":"￥293",
    "shop":"Finebagstudio"
},{
    "img":"./img/4_.webp",
    "content":"Kappa游泳镜男女通用高清大框防水防雾成人专业游泳眼镜潜水装备",
    "money":"￥34.90",
    "oldmoney":"￥59",
    "shop":"kappa游泳旗舰店"
},{
    "img":"./img/5.webp",
    "content":"fortro赋强益生菌洗发水控油去屑止痒防脱洗发水强韧发根控油蓬松",
    "money":"￥98.00",
    "oldmoney":"￥128",
    "shop":"fortro赋强旗舰店"
},{
    "img":"./img/6_.webp",
    "content":"【明星爆款】冰希黎幻彩鎏金香水女士持久淡香正品大牌流沙香水",
    "money":"￥148.00",
    "oldmoney":"￥198",
    "shop":"冰希黎旗舰店"
},{
    "img":"./img/7_.webp",
    "content":"AMIRO觅光 化妆镜led带灯O系列小黑镜宿舍台式桌面梳妆镜美妆镜子",
    "money":"￥569.00",
    "oldmoney":"￥779",
    "shop":"AMIRO觅光旗舰店"
},{
    "img":"./img/8.webp",
    "content":"纯珂斯尼蜂窝果冻胶内衣小胸简约无钢圈无痕防下垂女士文胸新款",
    "money":"￥139.00",
    "oldmoney":"￥199",
    "shop":"纯珂斯尼旗舰店"
},{
    "img":"./img/9.webp",
    "content":"奶糖派大杯文胸半杯无肩带美背内衣防滑光面无痕上托春夏胸罩女",
    "money":"￥249.00",
    "oldmoney":"￥259",
    "shop":"奶糖派旗舰店"
},{
    "img":"./img/10.webp",
    "content":"欧莱雅玻尿酸洗发水护发素控油蓬松无硅油女洗头水洗发露洗护套装",
    "money":"￥178.00",
    "oldmoney":"￥188",
    "shop":"欧莱雅美发官方旗舰店"
}]
    let str = ''
    arr.forEach(function(el){
        str +=`
                <li>
                    <img src="${el.img}">
                    <span id="wenzi">${el.content}</span><br>
                    <span id="ora">${el.money}</span><span id="old"><s>${el.oldmoney}</s></span><br>
                    <span  class="iconfont icon-dianpu" id="dianpu">${el.shop}</span>
                </li>
        `
    })
    let list = document.querySelector('.list');
    list.innerHTML = str;
    </script>
</body>
</html> 